var hetja = {	
	onLoad : function() {
		map.onLoad();
		gold = 0;
		sight = 10;
		xPos = 20;
		yPos = 20;
		map.addEntity("X", 20, 20);
		map.drawMap();
	},

	meira : function(tala) {
		gold += tala;
		$("#gold").text(gold);
	},
	
	getSight : function() {
		return sight;
	},
	
	setSight : function(tala) {
		sight = tala;
	},
	
	move : function(deltaX, deltaY) {
		map.moveEntity("X", xPos, yPos, xPos+deltaX, yPos+deltaY);
		xPos += deltaX;
		yPos += deltaY;
	},
	
	getHeroLocation : function() {
		return [yPos, xPos];
	},
};
